"""
Task 6*


Write a python program, which sums all digits in a python string.

Examples, input - `1234`, output - 10
"""

entered_int = input("Enter your number: ")
i = 0
sum = 0
while i != len(entered_int):
    sum += int(entered_int[i])
    i += 1
print(sum)
